#coding:utf-8
import pickle
#dump文件，pickel默认二进制保存，所以wb，不然会报错
'''
data = "这是用来测试pickel库的字符串"
file2 = open("test.txt","wb")
pickle.dump(data,file2,0)
file2.close()
'''
file1 = open("test.txt","rb")
data = pickle.load(file1)  #解压缩回来
print(data)
